package com.ciko.code.adapter;

import android.content.Context;
import com.ciko.code.base.adapter.CommonAdapter;
import com.ciko.code.base.adapter.ViewHolder;
import com.ciko.code.bean.SelRemindPolicyListEty;
import com.mywork.R;
import java.util.List;

/**
 * Created by ciko on 2015/12/5.
 */
public class WorkManagerBaodanListAdapter extends CommonAdapter<SelRemindPolicyListEty> {

    public WorkManagerBaodanListAdapter(Context context, List<SelRemindPolicyListEty> mDatas, int itemLayoutId) {
        super(context, mDatas, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder helper, SelRemindPolicyListEty item) {
        helper.setText(R.id.tv_nameBaodan, item.getHolderName());
        helper.setText(R.id.tv_typeBaodan, item.getPolicyType());
        helper.setText(R.id.tv_timeBaodan, item.getPolicyEndTime());
        helper.setText(R.id.tv_carNumBaodan, item.getPlateNumber());
        helper.setText(R.id.tv_moneyBaodan, item.getPremium());
    }
}
